/*
 * Bolygo.hh
 *
 *  Created on: 2009.12.14.
 *      Author: zsanka
 */

#include <QtGui>
#include "Gui.hh"
# include "../Network/StateChanged.hh"

#ifndef BOLYGO_HH_
#define BOLYGO_HH_

class Gui::Bolygo: public QWidget {
	Q_OBJECT

	protected: static QImage img;

	protected: bool selected;

	public: Network::StateChanged::PlanetInfo const planetinfo;

	public: explicit Bolygo(
			QWidget* parent, Network::StateChanged::PlanetInfo& pi);

	protected: virtual void mousePressEvent(QMouseEvent* ev);
	protected: virtual void paintEvent(QPaintEvent* ev);

	public: void select();
	public: void deselect();
	public: u8 get_id() const;
    public: QString get_player() const;

	signals: void left_clicked(Bolygo*);
	signals: void right_clicked(Bolygo*);
};

#endif /* BOLYGO_HH_ */
